package com.hockeo.shared.rpc.classic;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * A callback that can be used when no specific result handling is required.
 *
 * @version $Id$
 * @author jjanke
 */
public class RpcVoidCallback extends RpcCallback<RpcVoidResult>
{
  /**
   * Dummy class indicating that an RPC call does not produce any result that needs
   * processing.
   */
  public enum NoResult implements IsSerializable
  {
    NO_RESULT;
  }

  @Override
  public void processResult( RpcVoidResult result )
  {
    // no processing is required
  }
}
